Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test coverage collection & reporting #115

Merged
merged 2 commits into from
Jun 13, 2023
Merged

Add test coverage collection & reporting #115

merged 2 commits into from
Jun 13, 2023

Conversation

atifaziz
Copy link
Owner

This PR adds test coverage collection & reporting during a CI build as well as locally runnable test scripts (test.cmd/test.sh). When the test script finishes running, a summary as follows is printed:

Summary
  Generated on: 13/06/2023 - 18:18:42
  Coverage date: 13/06/2023 - 18:03:24 - 13/06/2023 - 18:18:41
  Parser: MultiReport (12x Cobertura)
  Assemblies: 1
  Classes: 5
  Files: 5
  Line coverage: 88.3%
  Covered lines: 380
  Uncovered lines: 50
  Coverable lines: 430
  Total lines: 1039
  Branch coverage: 79.7% (169 of 212)
  Covered branches: 169
  Total branches: 212
  Method coverage: 79.7% (55 of 69)
  Covered methods: 55
  Total methods: 69

NCrontab                          88.3%
  NCrontab.CrontabException       66.6%
  NCrontab.CrontabField           69.7%
  NCrontab.CrontabFieldImpl       89.7%
  NCrontab.CrontabSchedule        99.4%
  NCrontab.StringSeparatorStock  100.0%

The script generates detailed HTML report of the the code coverage into etc/coverage and the CI build publishes it as a downloadable artifact. Another online browsable report should also be available on Codecov.

@atifaziz atifaziz merged commit c6b4436 into master Jun 13, 2023
@atifaziz atifaziz deleted the coverage branch June 13, 2023 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant